Part Number Hot Search : 
TA75W393 148CV C1E3C APC12 0521DS OM6020SA MX7530 CXD11
Product Description
Full Text Search
 

To Download PROGRSED1335 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 Tianma Microelectronics (USA) Inc
Software:
$MOD751
om .c 4U et he aS at .D w w w
; ; ; ; ; ; ; ; ; ; The processor clock speed is 16MHz. Cycle time is .750mS. Demo software to display a bonsai tree bitmap image and 4 lines of text on a 320 x 240 LCD. org ljmp 00h start org 100h ; Initialize the 32241 ; Text page 0000h 04afh ; Graphics page 04b0h 2a2fh start: mov lcall mov lcall mov lcall mov lcall mov lcall mov lcall mov lcall mov lcall mov lcall mov lcall mov lcall mov lcall mov lcall r1,#40h comm32 dptr,#msg1 data32 r1,#44h comm32 dptr,#msg2 data32 r1,#5dh comm32 dptr,#msg3 data32 r1,#4ch comm32 r1,#5ah comm32 dptr,#msg18 data32 r1,#5bh comm32 dptr,#msg4 data32 r1,#59h comm32 dptr,#msg5 data32
************************************************** * * * Tianma 320 x 240 programming code * * **************************************************
; clear the text page lcall clrtext
; display bitmap mov r1,#46h lcall comm32 mov dptr,#msg6 lcall data32 mov r1,#42h lcall comm32 mov dptr,#msg12 lcall data32
m o .c U t4 e e h S ta a .D w om w .c w 4U et
;program start ;set cursor ;mwrite ;set cursor ;system set ;ss param ;scroll ;mwrite ;scroll param ;csr form ;stop ;csr param ;************************************************* ;SUBROUTINES ;csrdir ; comm32 sends the byte in R1 to the ; 32241 display as a command ;hdot scr comm32: ;hdot param ;overlay ;ovrly param ;disp on/off ;disp param setb comm321: mov mov clr clr setb setb ret p3.2 ;a0=1=command a,r1 p1,a p3.0 p3.1 p3.1 p3.0 ;get data byte ;CS the display ;strobe ; write32 sends the byte in R1 to the ; 32241 display as a data byte. ;set cursor write32: clr sjmp p3.2 comm321 ;a0=0=data ; data32 sends the message pointed to ; by the DPTR to the 32241 display. ;mwrite data32: clr movc cjne ret
; display text mov lcall mov lcall mov lcall mov lcall mov lcall mov lcall mov lcall mov lcall mov lcall mov lcall mov lcall mov lcall mov lcall mov lcall mov lcall mov lcall sjmp
r1,#46h comm32 dptr,#msg7 data32 r1,#42h comm32 dptr,#msg14 data32 r1,#46h comm32 dptr,#msg8 data32 r1,#42h comm32 dptr,#msg15 data32 r1,#46h comm32 dptr,#msg9 data32 r1,#42h comm32 dptr,#msg16 data32 r1,#46h comm32 dptr,#msg10 data32 r1,#42h comm32 dptr,#msg17 data32 $
;set cursor
;mwrite
;set cursor
;mwrite
Page 1
he aS at .D w w w
a ;get the byte a,@a+dptr a,#0a1h,data321;done?
Tianma Microelectronics
Tianma Microelectronics (USA) Inc
data321: mov lcall inc sjmp ; all of which are 20h r1,a write32 dptr data32 ;send it ;next byte msg11: db db msg18: db ;set cursor ;cursor param ;mwrite ;all spaces ;set cursor ; ; ; ; ; ; ; ; ; ' 01ah 0,01ah '
; Clear text RAM on the 3224 clrtext: mov r1,#46h lcall comm32 mov dptr,#msg13 lcall data32 mov r1,#42h lcall comm32 mov dptr,#msg11 lcall data32 mov r1,#46h lcall comm32 mov dptr,#msg6 lcall data32 ret
;hscr param
320x240 bonsai tree graphic The following table is not listed here. It consists of 9600 bytes which constitute a full screen bit map image of a bonsai tree. You may add a few bytes before the 01ah termination byte for testing puposes or include a complete bitmap image
msg12: db msg13: 01ah
;************************************************ ; TABLES AND DATA ; Initialization parameters for 3224. msg1: db db msg2: db db db msg3: db msg4: db msg5: db msg6: db msg7: db 31h,2h,0a1h ;set cursor ;text page ;1st line 0b0h,04h,0a1h ;set cursor to ;graphics page 16h,0a1h ;disp on/off 01h,0a1h ;overlay param 04h,86h,0a1h ;csr form msg17: 0,0,0efh,0b0h 04h,0efh,0,0 0,0,0a1h ;scroll msg16: 30h,87h,07h,27h ;system set 39h,0efh,28h,0h,0a1h msg15: msg14:
db
0,0,01ah
;set cursor ;to text page
db db
'HANTRONIX' 0a1h
db db
'Crystal Clear and' 0a1h
db db
'Visibly Superior' 0a1h
db db end
'LCD Modules' 0a1h
msg8: db msg9: db msg10: db ; ; ; ; 0a9h,2,0a1h ;4th line 81h,2,0a1h ;3rd line 59h,2,0a1h ;2nd line
1200 spaces for text page clear The following table is not listed here, except for the first 8 bytes, but consists of 1200 bytes
Page 2
Tianma Microelectronics


▲Up To Search▲   

 
Price & Availability of PROGRSED1335

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X